package com.zp.common.oss.config;


import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @program: zp-backstage
 * @ClassName FileConfig
 * @description:
 * @author: zhangpeng
 * @create: 2023-09-20 11:05
 * @Version 1.0
 **/
@AutoConfiguration
@ConfigurationProperties(prefix = "file-path-all")
public class FileConfig {

    /**
     * 静态资源路径
     */
    private static String staticPath;
    /**
     * 获取地址开关
     */
    private static boolean addressEnabled;
    /**
     * 是否加密
     */
    private boolean isEncrypt;
    /**
     * 文件服务器地址
     */
    private String fileServicePath;
    /**
     * 静态资源映射路径
     */
    private String path;

    public static String getStaticPath () {
        return staticPath;
    }

    public void setStaticPath (String staticPath) {
        FileConfig.staticPath = staticPath;
    }

    public static boolean isAddressEnabled () {
        return addressEnabled;
    }

    public static void setAddressEnabled (boolean addressEnabled) {
        FileConfig.addressEnabled = addressEnabled;
    }

    /**
     * 后端上传访问地址
     */


    public boolean isEncrypt () {
        return isEncrypt;
    }

    public void setEncrypt (boolean encrypt) {
        isEncrypt = encrypt;
    }

    public String getFileServicePath () {
        return fileServicePath;
    }

    public void setFileServicePath (String fileServicePath) {
        this.fileServicePath = fileServicePath;
    }

    public String getPath () {
        return path;
    }

    public void setPath (String path) {
        this.path = path;
    }


}
